package service

import (
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

var DB *gorm.DB

func init() {
	dsn := "root:123456@tcp(127.0.0.1:3306)/picture?charset=utf8&parseTime=True&loc=Local"
	d, _ := gorm.Open(mysql.Open(dsn), &gorm.Config{})
	DB = d
}
